﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using BlueLotus7.SSQAnalysisCore;

namespace BlueLotus7.SSQAnalyzer
{
    internal class DataHandler
    {
#if owner
        protected const string ssqListUrl = "http://www.500wan.com//static/info/kaijiang/xml/ssq/list.xml";
#else
        protected const string ssqListUrl = "http://www.500wan.com//static/info/kaijiang/xml/ssq/list.xml";
#endif

        internal static List<SSQLotteryStage> GetSSQLotteryHistory()
        {
            List<SSQLotteryStage> result = null;

            XDocument xDocument = XDocument.Load("http://localhost/list.xml");
            result = SSQLotteryStage.ConvertSSQLottery(xDocument);

            return result;
        }
    }
}
